package com.ruantu.clothing.service;

import com.ruantu.clothing.entity.KeHu;
import com.ruantu.clothing.entity.PageBean;
import com.ruantu.clothing.entity.Pifashang;
import com.ruantu.clothing.entity.User;
import com.ruantu.clothing.util.MyException;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.util.List;
import java.util.Map;


/**
 * Created by Administrator on 2018/6/13 0013.
 */
public interface PifashangService {
    /**
     * 查询所有批发商
     *
     * @param pifashang
     * @return
     */
    List<Pifashang> findList(Pifashang pifashang, PageBean pageBean);

    /**
     * 导出excel
     *
     * @return
     */
    XSSFWorkbook downExcel(Pifashang pifashang);


    /**
     * 删除批发商
     *
     * @param pifashang
     * @return
     */
    int delPifashang(Pifashang pifashang);

    /**
     * 保存批发商
     *
     * @param pifashang
     * @return
     */
    int savePifashang(Pifashang pifashang);

    /**
     * 查询是否存在该批发商
     *
     * @param pifashang
     * @return
     */
    int findPifashang(Pifashang pifashang);

    /**
     * 查询批发商根据id
     *
     * @return
     */

    Pifashang findPifashangById(Pifashang pifashang);

    List<Pifashang> getAllLIstPFS(Pifashang pfs);

    List<Pifashang> selectAllPFSForJGLX(User u);

    /***
     * 退货用：获得客户
     * @param u
     * @return
     */
    List<Pifashang> selectallKeHu(User u);

    List<Pifashang> selectallKeHureport(User u);

}
